package cn.com.shbs.Dao.UserInfoDao;

import cn.com.shbs.model.LoginUser;
import cn.com.shbs.model.Store;
import cn.com.shbs.model.UserInfo.UserInfo;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface UserInfoDao {
    /**通过login_name查找用户信息;*/
    public UserInfo findByLoginname(String loginname)throws Exception;

    //添加用户信息
    public void addUserInfo(LoginUser userInfo) throws Exception;
    //根据用户code查询提成比率
    public String queryRate(String code) throws Exception;
    
    //通过店铺ID找用户信息
	public List<UserInfo> FindUserInfoByStoreId(HashMap map) throws  Exception;

	public int FindUserInfoByStoreIdNums(String store_code)throws  Exception;


}
